<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>雨量监测信息</h1>
<a th:href="@{/users/toAdd}">添加</a>
<table border="1">
    <tr>
        <td>序号</td>
        <td>区域名称</td>
        <td>监测时间</td>
        <td>雨量值(mm)</td>
        <td>监测站</td>
        <td>站点地址</td>
        <td>操作</td>
    </tr>
    <tr th:each="item:${cx}">
        <td th:text="${item.id}"/>
        <td th:text="${item.districtName}"/>
        <td th:text="${#dates.format(item.monitorTime,'yyyy-MM-dd')}"/>
        <td th:text="${item.rain}"/>
        <td th:text="${item.monitoringStation}"/>
        <td th:text="${item.monitoringAddress}"/>
        <td>
            <a th:href="@{/users/toUpdate(id=${item.id})}">修改</a>
            <a th:href="@{/users/del/{id}(id=${item.id})}">删除</a>
        </td>
    </tr>
</table>
</body>
</html>